import request from "@/utils/index.js";

// 获取营业额
export const getTurnoverService = (startDate, endDate) => {
    console.log(startDate, endDate)
    return request.get('/api/turnover', {params: {startDate, endDate}})
}

// 根据销售人员id获取个人营业额
export const getTurnoverByEmpIdService = (empId, startDate, endDate) => {
    return request.get('/api/turnover/emp', {params: {empId, startDate, endDate}})
}